//
//  ShoppongCartModel.m
//  MobileShoppingMall
//
//  Created by 冯传昌 on 2021/4/28.
//  Copyright © 2021 冯传昌. All rights reserved.
//

#import "ShoppongCartModel.h"

@implementation ShoppongCartModel

+(ShoppongCartModel *)paraWithDict:(NSDictionary *)dict{
    ShoppongCartModel *model;
    model = [ShoppongCartModel yy_modelWithDictionary:dict];
    NSArray *arr = model.products;
    
    NSMutableArray *arr1 = [NSMutableArray array];
    for (NSDictionary *dic in arr) {
        CartGoodsModel *cartM = [CartGoodsModel paraWithDict:dic];
        [arr1 addObject:cartM];
    }
    model.products = (NSArray *)arr1;
    
    model.cellHeight = model.products.count * 110 + 50 + 12;
    
    return model;
}


@end
